package com.gmu.service.excel;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gmu.pojo.TblStudent;
import com.gmu.pojo.TblTeacher;
import com.gmu.pojo.excel.TeacherUserData;
import com.gmu.pojo.excel.UserData;
import com.gmu.service.TblStudentService;
import com.gmu.service.TblTeacherService;
import com.gmu.service.TblUnitsService;
import com.gmu.service.TblUserService;
import org.springframework.security.crypto.password.PasswordEncoder;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.Map;


public interface TeacherExcelService extends IService<TeacherUserData> {

    void saveFile(MultipartFile file, TblUserService userService, TblTeacherService teacherService, TblUnitsService unitsService, PasswordEncoder passwordEncoder);

    //将数据库导出excel
    void outDataBase(HttpServletResponse response) throws IOException;

    //根据身份证查询老师信息，在将数据传给前端显示
    Map<String, TblTeacher>  ByIdGetTeacher(MultipartFile file, TblTeacherService teacherService);

}
